<template>
  <div class="mobile-product-3">
    <img v-slide-plus :src="info.image4" class="banner" />
    <Title
      v-slide-up
      title="APP FUNCTIONS"
      color="linear-gradient(90deg, #4580dd 0%, rgba(0, 0, 0, 0) 100%)"
      size="16"
      bold="700"
      sub-title="APP 功能展示"
      sub-color="#0e0b31"
      sub-size="24"
      sub-bold="700"
      gap="10"
      class="mb30"
    />
    <Title
      v-slide-plus
      v-for="(i, k) in info.show"
      :key="k"
      :title="i.name"
      color="#000"
      size="14"
      bold="700"
      line="1"
      :sub-title="i.introduce"
      sub-color="#878597"
      sub-size="12"
      sub-line="3"
      :line-height="28"
      class="g-item"
    />
    <div class="f f-ac f-jc">
      <div v-slide-up class="btn-box" @click="handleContact">立即咨询</div>
    </div>
  </div>
</template>
<script setup lang="ts">
const props = defineProps({
  info: {
    type: Object,
    default: () => {},
  },
});
const emit = defineEmits(["contact"]);

// 立即咨询
const handleContact = () => {
  emit("contact", `APP功能展示：${props.info.name}`);
};
</script>
<style lang="scss" scoped>
.mobile-product-3 {
  background-color: #fff;
  padding: 1.25rem;
  box-sizing: border-box;
  position: relative;
  .banner {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 30%;
    min-width: 12.5rem;
    max-width: 18.75rem;
    object-fit: cover;
    z-index: 0;
  }
  .g-item {
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: all 0.3s;
    box-sizing: border-box;
    margin-top: 1.25rem;
    border-radius: 0.625rem;
    &:active {
      box-shadow: 0 0 0.625rem 0 rgba(0, 0, 0, 0.1);
      border: 0.0625rem solid #e5e5e5;
    }
  }
  .btn-box {
    width: 10.25rem;
    height: 3.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4580dd;
    margin-top: 2.5rem;
    z-index: 1;
    &:active {
      cursor: pointer;
      background-color: #3a6dc0;
    }
  }
}
</style>
